package com.yunfangdata.mapper;

import com.yunfangdata.domain.Customer;
import com.yunfangdata.query.QueryObject;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    Customer selectByPrimaryKey(Long id);

    List<Customer> selectAll();

    int updateByPrimaryKey(Customer record);

    int queryForCount(QueryObject qo);

    List<Customer> queryForList(QueryObject qo);


    void changeState(Long id);

    void changeFollow(Long id);

    List<Customer> queryForListByFollow(QueryObject qo);
}